package com.ami;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

import com.ami.kvm.jviewer.gui.JViewerApp;

/**
 * <p></p>
 *
 * @author TianLin
 * @date 2018年7月26日 上午10:39:22
 * @see 
 */
public class Test {
	public static void main(String[] args) throws NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException {
//		Field[] fields = JViewer.class.getFields();
//		Lists.newArrayList(fields).forEach(System.out::println);
//		System.out.println("**************************************");
//		Field f = JViewer.class.getDeclaredField("mainFrame");
//		f.setAccessible(true);
//		System.out.println(f.get(JViewer.class));
		Constructor<JViewerApp> cons = JViewerApp.class.getDeclaredConstructor();
		cons.setAccessible(true);
		System.out.println(cons);
		System.out.println(cons.newInstance());
//		JViewerApp newInstance = JViewerApp.class.getConstructor().newInstance();
	}
}
